//////////////////////////////////////////////
// DefaultDeallocator.h
//
//////////////////////////////////////////////

/// Defines / Macros -------------------------

#pragma once

/// Includes ---------------------------------

// nkMemory
#include "Deallocator.h"

/// Class ------------------------------------

namespace nkMemory
{
	template <typename T>
	class DefaultDeallocator final : public Deallocator<T>
	{
		public :

			// Destructor
			virtual ~DefaultDeallocator () = default ;

			// Allocation
			virtual void deallocate (T* object) override
			{
				delete object ;
			}
	} ;
}